//package com.ewei.support.mail.multi;
//
//import java.util.ArrayList;
//import java.util.List;
//
//import com.ewei.support.async.Handler;
//import com.ewei.support.mail.MailReceiver;
//
///**
// * 组合邮件收取器
// * @author li
// * @version 1 (2014年7月5日 下午2:50:23)
// * @since Java7
// */
//public class MultiMailReceiver implements MailReceiver {
//    private List<MailReceiver> mailReceivers = new ArrayList<MailReceiver>();
//
//    public void setMailReceivers(List<MailReceiver> mailReceivers) {
//        this.mailReceivers = mailReceivers;
//    }
//
//    public List<MailReceiver> getMailReceivers() {
//        return mailReceivers;
//    }
//
//    public void receive(Handler<org.budo.mail.javax.ReceiveMail> handler) {
//        for (MailReceiver mailReceiver : getMailReceivers()) {
//            mailReceiver.receive(handler);
//        }
//    }
//}